﻿using System.Collections.Generic;
using System.Linq;
using QDP.Platform.Silverlight;
using QDP.Platform.Silverlight.Manager;
public static class QExtentFotWidgetManager
{
    /// <summary>获取工具组件的目录结构</summary>
    /// <param name="thiz"></param>
    /// <returns>返回工具组件目录结构清单</returns>
    public static List<Widget> GetToolDirectories(this WidgetManager thiz)
    {
        return (from p in thiz.Widgets where p.HasChildren && p.Type == WidgetType.Tool select p).ToList();
    }
}